package com.mpaster.config;

import com.mpaster.bean.TestA;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestConfig {
    static ApplicationContext applicationContext;

    public static void main(String[] args){
        applicationContext = new ClassPathXmlApplicationContext("applicationContextEx.xml");
        TestA testA = (TestA)applicationContext.getBean("testA");
        testA.sayHello();
    }
}
